package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.exception.UserException;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
     PageResult findPage(QueryPageBean queryPageBean);

    User findByUserName(String username);

    boolean add(com.itheima.pojo.User user);

    void deleteById(Integer id) throws UserException;

    User findById(String id);

    void edit(User user);

    List<User> findall();

    void deletebyid(Integer id);

    Map findbyid4updata(Integer id);
}
